package com.totalinlink.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.totalinlink.sisclient.MainActivity;
import com.totalinlink.sisclient.R;

/**
 * Created by zhangpf1127 on 2015/9/6.
 */

public class MineFragment extends Fragment implements View.OnClickListener {

    private ImageButton btTitle;
    private TextView tvTitle;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view=inflater.inflate(R.layout.minefragment, null);

        RelativeLayout titleLayout = (RelativeLayout)view.findViewById(R.id.include);
        btTitle = (ImageButton)titleLayout.findViewById(R.id.bt_title);
        tvTitle = (TextView)titleLayout.findViewById(R.id.tv_title);

        btTitle.setOnClickListener(this);
        tvTitle.setText("个人君");
        return view;
        
    }

    @Override
    public void onClick(View v) {

        MainActivity ra = (MainActivity) getActivity();

        ra.getSlidingMenu().toggle();
    }
}
